<!DOCTYPE html>
<html lang="en" ng-app="app">
<head>
    <meta charset="UTF-8">
    <title></title>
    <link href="../app/bower_components/bootstrap/dist/css/bootstrap.css" rel="stylesheet">
</head>
<body>

<div high1 high2></div>


<script src="../app/bower_components/jquery/dist/jquery.js"></script>
<script src="../app/bower_components/angular/angular.js"></script>

<script>
    var app = angular.module('app', []);
    app.controller('AppController', function ($scope) {

    });
    app.directive('high1',
            function () {
                return {
                    scope: true,
                    priority: 998,
                    link: function ($scope) {
                        console.log(':: ' + $scope.$id);
                    }
                }
            }
    );

    app.directive('high2',
            function () {
                return {
                    priority: 999,
                    link: function ($scope) {
                        console.log($scope.$id);
                    }
                }
            }
    );

</script>
</body>
</html>